{% extends "bootstrap/base.html" %}

{% block title %}AI-QI{% endblock %}

{% block head %}
{{ super() }}
{{ moment.include_moment() }}

<link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/main.css') }}">
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/bootstrap.min.css') }}">
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='css/bootstrap-theme.min.css') }}">
<script src="{{ url_for('static', filename='js/jquery-3.2.1.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='js/main.js') }}"></script>
{% endblock %}

{% block body %}
<div class="navbar navbar-inverse" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="{{ url_for('main.index') }}">AI-QI</a>
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li id="nav-index"><a href="{{ url_for('main.index') }}">首页</a></li>
                <li id="nav-getdata"><a href="{{ url_for('main.getdata') }}">数据获取</a></li>
                <li id="nav-tables"><a href="{{ url_for('main.tables') }}">Tables</a></li>
                <li id="nav-visualization"><a href="{{ url_for('main.visualization') }}">可视化</a></li>
                <li id="nav-dataset_manage"><a href="{{ url_for('main.dataset_manage') }}">数据集管理</a></li>
                <li id="nav-models"><a href="{{ url_for('main.models') }}">模型</a></li>
            </ul>

            <ul class="nav navbar-nav navbar-right">
                <li id="nav-setting"><a href="{{ url_for('main.setting') }}">设置</a></li>
            </ul>
        </div>
    </div>
</div>


{% block content %}
<div class="container">
    {% for category,message in get_flashed_messages(with_categories=true) %}
    <div id="flash" class="alert alert-{{category}}" role="alert">
        <button type="button" class="close" data-dismiss="alert" onclick="$('#flash').hide()">&times;</button>
        {{ message }}
    </div>
    {% endfor %}

    {% block page_content %}{% endblock %}
</div>
{% endblock %}

{% endblock %}

{% block scripts %}
{{ super() }}
{{ moment.include_moment() }}
{{moment.lang('zh-CN')}}
{% endblock %}